package cn.cleanarch.infra.idp.pms.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import cn.cleanarch.infra.idp.pms.domain.entity.Project;
import cn.cleanarch.infra.idp.pms.domain.query.ProjectQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 项目Mapper接口
 */
@Mapper
public interface ProjectMapper extends BaseMapper<Project> {
    
    /**
     * 分页查询项目
     * @param page 分页参数
     * @param query 查询参数
     * @return 分页结果
     */
    Page<Project> pageQuery(Page<Project> page, @Param("param") ProjectQuery query);
}